<script>
	export default {
		data() {
			return {
			}
		},
		onLaunch() {
			console.log('onLaunch执行完毕')
		},
		onLoad() {
			console.log('onLoad')
		},
		onShow() {
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			async init() {
				let select = []
				let selectDictionaries = []
				let result = await findDept()
				console.log('111', result)
				result.data.forEach(item => {
					select.push({
						value: item.dept_name,
						text: item.dept_name
					})
					selectDictionaries.push({
						value: item.dept_id,
						text: item.dept_name
					})
				})
				this.$store.commit('CompanyDropDownBox', select)
				this.$store.commit('CompanyDropDownBoxDictionaries', selectDictionaries)
				// this.$isResolve()
			}
		},
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	/*每个页面公共css */
</style>